/*
 * XML Type:  pre-persist
 * Namespace: http://java.sun.com/xml/ns/persistence/orm
 * Java type: com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrePersist
 *
 * Automatically generated - do not modify.
 */
package com.googlecode.horncomb.orm.jpa.v10.xmlbeans.impl;
/**
 * An XML pre-persist(@http://java.sun.com/xml/ns/persistence/orm).
 *
 * This is a complex type.
 */
public class PrePersistImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrePersist
{
    
    /**  */
	private static final long serialVersionUID = 2750171046751400209L;


	public PrePersistImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName METHODNAME$0 = 
        new javax.xml.namespace.QName("", "method-name");
    
    
    /**
     * Gets the "method-name" attribute
     */
    public java.lang.String getMethodName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METHODNAME$0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "method-name" attribute
     */
    public org.apache.xmlbeans.XmlString xgetMethodName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(METHODNAME$0);
            return target;
        }
    }
    
    /**
     * Sets the "method-name" attribute
     */
    public void setMethodName(java.lang.String methodName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(METHODNAME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(METHODNAME$0);
            }
            target.setStringValue(methodName);
        }
    }
    
    /**
     * Sets (as xml) the "method-name" attribute
     */
    public void xsetMethodName(org.apache.xmlbeans.XmlString methodName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(METHODNAME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(METHODNAME$0);
            }
            target.set(methodName);
        }
    }
}
